home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / MacODBC / ODBC Tools / INCLUDE / sqlplat.h-win < prev    next >
Encoding:
Text File  |  1995-06-29  |  1.2 KB  |  63 lines  |  [TEXT/MPS ]

  1. #ifndef SQLPLAT_H
  2. #define SQLPLAT_H
  3.  
  4. #ifndef EXPORT
  5. #define EXPORT _export
  6. #endif
  7.  
  8. #ifdef WIN32
  9. #define SQL_API __stdcall
  10. #else
  11. #define SQL_API EXPORT CALLBACK
  12. #endif
  13. #define RETCODE_SQL_API RETCODE SQL_API
  14.  
  15. #ifdef WIN32
  16. #define TRANSAPI __stdcall
  17. #else
  18. #define TRANSAPI EXPORT FAR PASCAL
  19. #endif
  20. #define TRANSPREAPI
  21. #define BOOL_TRANSAPI BOOL TRANSAPI
  22.  
  23. #ifdef WIN32
  24. #define INSTAPI __stdcall
  25. #else
  26. #define INSTAPI EXPORT FAR PASCAL
  27. #endif
  28. #define INSTPREAPI
  29. #define BOOL_INSTAPI BOOL INSTAPI
  30. #define PROFILE_CB int // type used to pass/return a bytecount in SQLGetPrivateProfileString
  31. #define PROFILE_CB_INSTAPI PROFILE_CB INSTAPI
  32.  
  33. #ifdef WIN32
  34.     #define LDOUBLE_IS_DOUBLE 1
  35. #else
  36.     #define LDOUBLE_IS_DOUBLE 0
  37. #endif
  38.  
  39. #ifdef WIN32
  40.     #define PUSH_POP_PACK2 1                /* Assume two byte strucutre packing throughout */
  41. #else
  42.     #define PUSH_POP_PACK2 0
  43. #endif
  44.  
  45. #ifndef WIN32
  46. #define SQL_PROFILE_STRING 0
  47. #else
  48. #define SQL_PROFILE_STRING 1
  49. #endif
  50. #define INSTALL_API 1
  51.  
  52. #define WORDPARAM WORD
  53.  
  54. #ifndef WINVER
  55. #define  WINVER  0x300                     // Assume Windows 3.0
  56. #endif
  57.  
  58. #if (WINVER < 0x30a)
  59. // Win 3.1 Types -----------------------------------------------------------
  60. typedef const char FAR*   LPCSTR;
  61. #endif
  62.  
  63. #endif // SQLPLAT_H